Add Certificate to Trusted Root Store

The /files/tls/<id>/trustedRoot/incremental URL adds additional certificate to the trusted root store.

URL

/api/v1/files/tls/<id>/trustedRoot/incremental

HTTP Method

PUT

Supported Responses

200 OK
400 Bad request – provided certificate file is wrong (e.g. not in PEM format)
409 Conflict – private key can’t be loaded due to current device state (e.g. redundant board is synchronizing).

Example

Request:
PUT /api/v1/files/tls/2/trustedRoot/incremental HTTP/1.1
Host: 10.4.219.229
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
 
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="trust.pem"
Content-Type: application/octet-stream
 
-----BEGIN CERTIFICATE-----
MIIC7jCCAdagAwIBAgIBBjANBgkqhkiG9w0BAQUFADAgMQwwCgYDVQQKEwNBQ0wx
EDAOBgNVBAMUB0NBXzI0MzkwHhcNMDAwMTAxMDAwMDAwWhcNMzAwMTAxMDAwMDAw
...
kedoijcGdGJ9xA0bZa/lFqQQWPnKn735B5d5yjGPStHrh4QgtMaK6x3RmMnuPjoo
nK4zC2nJLBYcTpJUlAQvEFsoiLaBmyJl0wNF8HY3IgcT8g==
-----END CERTIFICATE-----
------WebKitFormBoundary7MA4YWxkTrZu0gW-- 
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
    "description": "Trusted root certificate was successfully added"
}